package com.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.common.model.Admin;
import com.common.query.AdminQueryParam;

import java.util.List;

public interface AdminService {

    List<Admin> findAll();

    Admin findByAdminId(long id);

    Admin findByUsername(String username);

    int save(Admin admin);

    void edit(Admin admin);

    void delete(long id);

    IPage<Admin> findAll(Integer page, Integer pageSize);

    IPage<Admin> findAll(
            Integer page,
            Integer pageSize,
            AdminQueryParam adminQueryParam
    );

}
